<template>
  <div id="app">
    <!-- <div id="container"> -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive" v-wechat-title="version" img-set="/static/favicon1.png"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive" v-wechat-title="version" img-set="/static/favicon1.png"></router-view>
    <!-- </div> -->
  </div>
</template>

<script>
  export default {
    name: 'app',
    computed: {
      version() {
        var url = window.location.href;
       {
          return '猴趣乐'
        }
      }
    }
  }
</script>

<style lang="less">
  @import '~vux/src/styles/reset.less';
  @import '~vux/src/styles/close.less';
  body {
    background-color: #fbf9fe;
  }
</style>
<style lang="scss">
  @import '/style/common.scss';
  body {
    background-color: #fff;
    -webkit-text-size-adjust: 100% !important;
  }
  body,
  html {
    height: 100%;
    width: 100%;
    min-width: 320px;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
  }
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  *:before,
  *:after {
    box-sizing: border-box;
  }
  #app {
    max-width: 768px;
    margin: 0 auto;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fbf9fe;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
  }
  .container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
</style>
